home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / COM / Q-Z / Terminal 2.2.sit / Terminal 2.2 / Project / Sources / Utilities.h < prev    next >
MacBinary  |  1992-01-17  |  2.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Fri Jan 17 12:00:00 1992, modified Fri Jan 17 12:00:00 1992, creator Think C, type ASCII, 1558 bytes "Utilities.h" , at 0x696 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 55 74 69 6c 69 74 | 69 65 73 2e 68 00 00 00 |..Utilit|ies.h...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 06 16 00 | 00 01 1e a5 9c bc 10 a5 |........|........|
|00000060| 9c bc 10 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8b 36 00 00 |........|.....6..|
|00000080| 2f 2a 0d 09 54 65 72 6d | 69 6e 61 6c 20 32 2e 32 |/*..Term|inal 2.2|
|00000090| 0d 09 22 55 74 69 6c 69 | 74 69 65 73 2e 68 22 0d |.."Utili|ties.h".|
|000000a0| 2a 2f 0d 0d 76 6f 69 64 | 20 41 63 74 69 76 61 74 |*/..void| Activat|
|000000b0| 65 44 65 61 63 74 69 76 | 61 74 65 20 28 44 69 61 |eDeactiv|ate (Dia|
|000000c0| 6c 6f 67 50 74 72 2c 20 | 73 68 6f 72 74 2c 20 42 |logPtr, |short, B|
|000000d0| 6f 6f 6c 65 61 6e 29 3b | 0d 42 79 74 65 20 2a 41 |oolean);|.Byte *A|
|000000e0| 70 70 65 6e 64 20 28 42 | 79 74 65 20 2a 2c 20 42 |ppend (B|yte *, B|
|000000f0| 79 74 65 20 2a 29 3b 0d | 42 6f 6f 6c 65 61 6e 20 |yte *);.|Boolean |
|00000100| 43 68 65 63 6b 53 75 66 | 66 69 78 28 42 79 74 65 |CheckSuf|fix(Byte|
|00000110| 20 2a 2c 20 42 79 74 65 | 20 2a 29 3b 0d 76 6f 69 | *, Byte| *);.voi|
|00000120| 64 20 43 65 6e 74 65 72 | 44 69 61 6c 6f 67 20 28 |d Center|Dialog (|
|00000130| 6c 6f 6e 67 2c 20 73 68 | 6f 72 74 29 3b 0d 73 68 |long, sh|ort);.sh|
|00000140| 6f 72 74 20 43 72 65 61 | 74 65 46 69 6c 65 20 28 |ort Crea|teFile (|
|00000150| 73 68 6f 72 74 2c 20 6c | 6f 6e 67 2c 20 42 79 74 |short, l|ong, Byt|
|00000160| 65 20 2a 2c 20 6c 6f 6e | 67 2c 20 6c 6f 6e 67 29 |e *, lon|g, long)|
|00000170| 3b 0d 73 68 6f 72 74 20 | 44 65 6c 65 74 65 46 69 |;.short |DeleteFi|
|00000180| 6c 65 20 28 73 68 6f 72 | 74 2c 20 6c 6f 6e 67 2c |le (shor|t, long,|
|00000190| 20 42 79 74 65 20 2a 29 | 3b 0d 42 6f 6f 6c 65 61 | Byte *)|;.Boolea|
|000001a0| 6e 20 44 69 61 6c 6f 67 | 4b 65 79 64 6f 77 6e 28 |n Dialog|Keydown(|
|000001b0| 44 69 61 6c 6f 67 50 74 | 72 2c 20 45 76 65 6e 74 |DialogPt|r, Event|
|000001c0| 52 65 63 6f 72 64 20 2a | 2c 20 73 68 6f 72 74 20 |Record *|, short |
|000001d0| 2a 29 3b 0d 76 6f 69 64 | 20 44 69 73 70 6f 73 65 |*);.void| Dispose|
|000001e0| 42 75 66 66 65 72 20 28 | 48 61 6e 64 6c 65 2c 20 |Buffer (|Handle, |
|000001f0| 42 6f 6f 6c 65 61 6e 29 | 3b 0d 70 61 73 63 61 6c |Boolean)|;.pascal|
|00000200| 20 76 6f 69 64 20 44 72 | 61 77 55 73 65 72 46 72 | void Dr|awUserFr|
|00000210| 61 6d 65 20 28 57 69 6e | 64 6f 77 50 74 72 2c 20 |ame (Win|dowPtr, |
|00000220| 73 68 6f 72 74 29 3b 0d | 70 61 73 63 61 6c 20 76 |short);.|pascal v|
|00000230| 6f 69 64 20 44 72 61 77 | 55 73 65 72 4c 69 6e 65 |oid Draw|UserLine|
|00000240| 20 28 57 69 6e 64 6f 77 | 50 74 72 2c 20 73 68 6f | (Window|Ptr, sho|
|00000250| 72 74 29 3b 0d 73 68 6f | 72 74 20 46 69 6c 65 52 |rt);.sho|rt FileR|
|00000260| 65 6e 61 6d 65 20 28 73 | 68 6f 72 74 2c 20 6c 6f |ename (s|hort, lo|
|00000270| 6e 67 2c 20 42 79 74 65 | 20 2a 2c 20 42 79 74 65 |ng, Byte| *, Byte|
|00000280| 20 2a 29 3b 0d 73 68 6f | 72 74 20 46 69 6c 6c 65 | *);.sho|rt Fille|
|00000290| 72 20 28 73 68 6f 72 74 | 2c 20 6c 6f 6e 67 29 3b |r (short|, long);|
|000002a0| 0d 73 68 6f 72 74 20 47 | 65 74 43 68 65 63 6b 20 |.short G|etCheck |
|000002b0| 28 44 69 61 6c 6f 67 50 | 74 72 2c 20 73 68 6f 72 |(DialogP|tr, shor|
|000002c0| 74 29 3b 0d 73 68 6f 72 | 74 20 47 65 74 52 61 64 |t);.shor|t GetRad|
|000002d0| 69 6f 42 75 74 74 6f 6e | 20 28 44 69 61 6c 6f 67 |ioButton| (Dialog|
|000002e0| 50 74 72 2c 20 73 68 6f | 72 74 2c 20 73 68 6f 72 |Ptr, sho|rt, shor|
|000002f0| 74 29 3b 0d 76 6f 69 64 | 20 47 65 74 44 6c 6f 67 |t);.void| GetDlog|
|00000300| 4f 72 69 67 69 6e 20 28 | 73 68 6f 72 74 2c 20 50 |Origin (|short, P|
|00000310| 6f 69 6e 74 20 2a 29 3b | 0d 76 6f 69 64 20 47 65 |oint *);|.void Ge|
|00000320| 74 45 54 65 78 74 20 28 | 44 69 61 6c 6f 67 50 74 |tEText (|DialogPt|
|00000330| 72 2c 20 73 68 6f 72 74 | 2c 20 42 79 74 65 20 2a |r, short|, Byte *|
|00000340| 29 3b 0d 73 68 6f 72 74 | 20 49 6e 66 6f 46 69 6c |);.short| InfoFil|
|00000350| 65 20 28 73 68 6f 72 74 | 2c 20 6c 6f 6e 67 2c 20 |e (short|, long, |
|00000360| 42 79 74 65 20 2a 2c 20 | 4f 53 54 79 70 65 20 2a |Byte *, |OSType *|
|00000370| 2c 20 4f 53 54 79 70 65 | 20 2a 2c 20 6c 6f 6e 67 |, OSType| *, long|
|00000380| 20 2a 2c 20 6c 6f 6e 67 | 20 2a 29 3b 0d 75 6e 73 | *, long| *);.uns|
|00000390| 69 67 6e 65 64 20 6c 6f | 6e 67 20 4d 61 78 42 75 |igned lo|ng MaxBu|
|000003a0| 66 66 65 72 20 28 42 6f | 6f 6c 65 61 6e 20 2a 29 |ffer (Bo|olean *)|
|000003b0| 3b 0d 42 79 74 65 20 2a | 4d 79 53 74 72 69 6e 67 |;.Byte *|MyString|
|000003c0| 20 28 73 68 6f 72 74 2c | 20 73 68 6f 72 74 29 3b | (short,| short);|
|000003d0| 0d 48 61 6e 64 6c 65 20 | 4e 65 77 42 75 66 66 65 |.Handle |NewBuffe|
|000003e0| 72 20 28 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |r (unsig|ned long|
|000003f0| 2c 20 42 6f 6f 6c 65 61 | 6e 29 3b 0d 73 68 6f 72 |, Boolea|n);.shor|
|00000400| 74 20 4f 70 65 6e 46 69 | 6c 65 20 28 73 68 6f 72 |t OpenFi|le (shor|
|00000410| 74 2c 20 6c 6f 6e 67 2c | 20 42 79 74 65 20 2a 2c |t, long,| Byte *,|
|00000420| 20 73 68 6f 72 74 20 2a | 29 3b 0d 73 68 6f 72 74 | short *|);.short|
|00000430| 20 4f 70 65 6e 52 65 73 | 6f 75 72 63 65 20 28 73 | OpenRes|ource (s|
|00000440| 68 6f 72 74 2c 20 6c 6f | 6e 67 2c 20 42 79 74 65 |hort, lo|ng, Byte|
|00000450| 20 2a 2c 20 73 68 6f 72 | 74 20 2a 29 3b 0d 73 68 | *, shor|t *);.sh|
|00000460| 6f 72 74 20 50 61 74 68 | 6e 61 6d 65 20 28 42 79 |ort Path|name (By|
|00000470| 74 65 20 2a 2c 20 73 68 | 6f 72 74 2c 20 6c 6f 6e |te *, sh|ort, lon|
|00000480| 67 29 3b 0d 76 6f 69 64 | 20 53 65 74 43 68 65 63 |g);.void| SetChec|
|00000490| 6b 20 28 44 69 61 6c 6f | 67 50 74 72 2c 20 73 68 |k (Dialo|gPtr, sh|
|000004a0| 6f 72 74 2c 20 73 68 6f | 72 74 29 3b 0d 76 6f 69 |ort, sho|rt);.voi|
|000004b0| 64 20 53 65 74 45 54 65 | 78 74 20 28 44 69 61 6c |d SetETe|xt (Dial|
|000004c0| 6f 67 50 74 72 2c 20 73 | 68 6f 72 74 2c 20 42 79 |ogPtr, s|hort, By|
|000004d0| 74 65 20 2a 29 3b 0d 76 | 6f 69 64 20 53 65 74 48 |te *);.v|oid SetH|
|000004e0| 69 6c 69 74 65 20 28 44 | 69 61 6c 6f 67 50 74 72 |ilite (D|ialogPtr|
|000004f0| 2c 20 73 68 6f 72 74 2c | 20 73 68 6f 72 74 29 3b |, short,| short);|
|00000500| 0d 73 68 6f 72 74 20 53 | 65 74 49 6e 66 6f 46 69 |.short S|etInfoFi|
|00000510| 6c 65 20 28 73 68 6f 72 | 74 2c 20 6c 6f 6e 67 2c |le (shor|t, long,|
|00000520| 20 42 79 74 65 20 2a 2c | 20 4f 53 54 79 70 65 2c | Byte *,| OSType,|
|00000530| 20 4f 53 54 79 70 65 2c | 20 6c 6f 6e 67 2c 20 6c | OSType,| long, l|
|00000540| 6f 6e 67 29 3b 0d 42 6f | 6f 6c 65 61 6e 09 53 65 |ong);.Bo|olean.Se|
|00000550| 74 52 61 64 69 6f 42 75 | 74 74 6f 6e 20 28 44 69 |tRadioBu|tton (Di|
|00000560| 61 6c 6f 67 50 74 72 2c | 20 73 68 6f 72 74 2c 20 |alogPtr,| short, |
|00000570| 73 68 6f 72 74 2c 20 73 | 68 6f 72 74 29 3b 0d 76 |short, s|hort);.v|
|00000580| 6f 69 64 20 53 65 74 55 | 73 65 72 49 74 65 6d 20 |oid SetU|serItem |
|00000590| 28 44 69 61 6c 6f 67 50 | 74 72 2c 20 73 68 6f 72 |(DialogP|tr, shor|
|000005a0| 74 2c 20 50 72 6f 63 50 | 74 72 29 3b 0d 76 6f 69 |t, ProcP|tr);.voi|
|000005b0| 64 20 54 6f 67 67 6c 65 | 43 68 65 63 6b 42 6f 78 |d Toggle|CheckBox|
|000005c0| 09 28 44 69 61 6c 6f 67 | 50 74 72 2c 20 73 68 6f |.(Dialog|Ptr, sho|
|000005d0| 72 74 29 3b 0d 73 68 6f | 72 74 20 56 6f 6c 75 6d |rt);.sho|rt Volum|
|000005e0| 65 49 64 20 28 42 79 74 | 65 20 2a 2c 20 73 68 6f |eId (Byt|e *, sho|
|000005f0| 72 74 20 2a 29 3b 0d 0d | 23 69 66 64 65 66 20 4f |rt *);..|#ifdef O|
|00000600| 55 54 4c 49 4e 45 0d 76 | 6f 69 64 20 4f 75 74 4c |UTLINE.v|oid OutL|
|00000610| 69 6e 65 20 28 44 69 61 | 6c 6f 67 50 74 72 2c 20 |ine (Dia|logPtr, |
|00000620| 73 68 6f 72 74 2c 20 73 | 68 6f 72 74 29 3b 0d 70 |short, s|hort);.p|
|00000630| 61 73 63 61 6c 20 42 6f | 6f 6c 65 61 6e 20 4f 75 |ascal Bo|olean Ou|
|00000640| 74 6c 69 6e 65 46 69 6c | 74 65 72 20 28 44 69 61 |tlineFil|ter (Dia|
|00000650| 6c 6f 67 50 74 72 2c 20 | 45 76 65 6e 74 52 65 63 |logPtr, |EventRec|
|00000660| 6f 72 64 20 2a 2c 20 73 | 68 6f 72 74 20 2a 29 3b |ord *, s|hort *);|
|00000670| 0d 23 65 6c 73 65 0d 23 | 64 65 66 69 6e 65 20 4f |.#else.#|define O|
|00000680| 75 74 6c 69 6e 65 46 69 | 6c 74 65 72 20 30 0d 23 |utlineFi|lter 0.#|
|00000690| 65 6e 64 69 66 0d 00 00 | 00 00 00 00 00 00 00 00 |endif...|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000710| 00 00 00 02 0a 54 65 72 | 6d 69 6e 61 6c 20 c4 72 |.....Ter|minal .r|
|00000720| 01 00 00 00 00 0a 00 00 | 02 e1 a1 5e 7f c4 a5 cc |........|...^....|
|00000730| 0b 55 74 69 6c 69 74 69 | 65 73 2e 68 02 00 00 00 |.Utiliti|es.h....|
|00000740| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|00000750| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 a7 d3 7e 7a 00 00 | 00 00 00 00 01 1e 83 9f |....~z..|........|
|00000780| a5 cc 0c c2 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 11 00 01 40 02 40 00 00 | 00 00 00 00 00 00 00 00 |...@.@..|........|
|000007a0| 00 60 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.`......|........|
|000007b0| 00 00 00 00 00 00 00 00 | 0f 00 00 00 00 02 09 55 |........|.......U|
|000007c0| 74 69 6c 69 74 69 65 73 | 01 00 00 00 00 0e 00 00 |tilities|........|
|000007d0| 03 e3 a5 a4 70 6b a5 cc | 0c 54 00 00 00 00 00 33 |....pk..|.T.....3|
|000007e0| 00 39 01 68 01 f5 01 00 | 00 34 00 80 01 20 ff fb |.9.h....|.4... ..|
|000007f0| ff d2 00 00 00 00 00 00 | 80 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000810| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+